package com.osilon.testplugin;

import com.osilon.hooks.ChatCommand;
import com.osilon.hooks.MinecraftServer;
import com.osilon.plugins.Plugin;


public class TestPlugin implements Plugin {
	public TestPlugin(MinecraftServer server) {
		
	}

	@Override
	public void cleanup(MinecraftServer arg0) {
		
	}

	@Override
	public String getName() {
		return "Test";
	}

	@Override
	public String[] getSupportedCommands() {
		return new String[]{ "Test" };
	}

	@Override
	public void process(MinecraftServer server, ChatCommand command) {
		System.out.println("Processing Command: " + command.getCommand());
		command.getSenderInfo().display("Hello world!");
		System.out.println("Test: " + command.getSenderInfo().getName());
	}
}